// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "FiveoSocket",
    platforms: [.iOS(.v13)],
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "FiveoSocket",
            targets: ["FiveoSocket"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
        .package(url: "git@gitlab.sh.sensetime.com:sensetime_ios_app/submodule/sensetime_ios_moudles/utilitylayer/projectbasicmodule.git", .upToNextMajor(from: "0.0.1")),
        .package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.6"),
        .package(url: "https://github.com/AgoraIO/AgoraRtcEngine_iOS.git", from: "4.5.0"),
        .package(url: "https://github.com/Kitura/Swift-JWT.git", from: "4.0.2")
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "FiveoSocket",
            dependencies: [
                .product(name: "ProjectBasicModule", package: "projectbasicmodule"),
                .product(name: "Starscream", package: "Starscream"),
                .product(name: "RtcBasic", package: "AgoraRtcEngine_iOS"),
                .product(name: "SwiftJWT", package: "Swift-JWT"),
            ],
            resources: [.process("Resources")]
        ),

       
        .testTarget(
            name: "FiveoSocketTests",
            dependencies: ["FiveoSocket"]
        ),
    ]
)
